package com.baylor.server.business.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

import javax.persistence.Table;
import javax.persistence.Version;

/**
 * 
* @ClassName: XiangAo 
* @Description: 测试数据定义表
* @author 曹文波
* @date 2013年12月13日 下午2:30:49 
*
 */
@Entity
@Table(name = "tb_xa_xiangao")
public class XiangAo {
	
	
	/**	
//	 * 自增长 事件ID
	 * */
	private Long xiangAoId;
	
	/**
	 * 名称
	 */
	private String name;
	
	/**	
	 * 编辑时间
	 * */
	private Date editTime;
	/**	
	 * 状态
	 * */
	private int status;
	
	/**
	 * 数据修改版本
	 * 
	 **/
	private int version;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	public Long getXiangAoId() {
		return xiangAoId;
	}

	public void setXiangAoId(Long xiangAoId) {
		this.xiangAoId = xiangAoId;
	}

	@Column(name="edit_time", nullable=false)
	public Date getEditTime() {
		return editTime;
	}

	public void setEditTime(Date editTime) {
		this.editTime = editTime;
	}
	
	@Column(name="name", length=50)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name="status", nullable=false)
	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	@Version
	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}
 
	
	
}
